home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Internet Strate…Tools for the Enterprise
/
Microsoft Internet Strategy & Tools for the Enterprise.iso
/
content
/
devel.tls
/
icp
/
vbsamp
/
qukmail.exe
/
FRMALIAS.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1996-03-07
|
3KB
|
99 lines
VERSION 4.00
Begin VB.Form frmAddAlias
Caption = "Add Alias To New/Existing Group..."
ClientHeight = 1560
ClientLeft = 1950
ClientTop = 1620
ClientWidth = 5250
Height = 1965
Icon = "frmAlias.frx":0000
Left = 1890
LinkTopic = "Form1"
ScaleHeight = 1560
ScaleWidth = 5250
Top = 1275
Width = 5370
Begin VB.CommandButton cmdDone
Cancel = -1 'True
Caption = "Done"
Height = 345
Left = 3990
TabIndex = 5
Top = 570
Width = 1095
End
Begin VB.TextBox txtAlias
Height = 285
Left = 1080
TabIndex = 3
Top = 570
Width = 2685
End
Begin VB.CommandButton cmdAdd
Caption = "&Add Alias"
Height = 345
Left = 3990
TabIndex = 4
Top = 150
Width = 1095
End
Begin VB.TextBox txtGroup
Height = 285
Left = 1080
TabIndex = 1
Top = 180
Width = 2685
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "A&lias Name:"
Height = 195
Index = 1
Left = 180
TabIndex = 2
Top = 630
Width = 840
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Group Name:"
Height = 195
Index = 0
Left = 90
TabIndex = 0
Top = 240
Width = 945
End
Attribute VB_Name = "frmAddAlias"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdAdd_Click()
Dim msg As String
Select Case True
Case InStr(1, txtGroup.Text, """") > 0
msg = "Group Name may not contain quotes."
Case InStr(1, txtAlias.Text, """") > 0
msg = "Alias Name may not contain quotes."
Case Trim(txtGroup.Text) = ""
msg = "Group Name is invalid."
Case Else
Call AddAliasToDatabase(frmBulkMail.Addresses, txtGroup.Text, txtAlias.Text)
Call AddAliasToTree(frmBulkMail.Tree, txtGroup.Text, txtAlias.Text)
Exit Sub
End Select
MsgBox msg, vbOKOnly + vbInformation
End Sub
Private Sub cmdDone_Click()
Unload Me
End Sub
Private Sub txtAlias_GotFocus()
txtAlias.SelStart = 0
txtAlias.SelLength = Len(txtAlias.Text)
End Sub
Private Sub txtGroup_GotFocus()
txtGroup.SelStart = 0
txtGroup.SelLength = Len(txtGroup.Text)
End Sub